import { _decorator, Component } from 'cc';

const { ccclass } = _decorator;

@ccclass('GameView')
export class GameView extends Component {
    private static _instance: GameView = null;
    public static get Instance(): GameView {
        return this._instance;
    }

    onLoad() {
        if (GameView._instance) {
            console.warn("GameView instance already exists!");
            return;
        }
        GameView._instance = this;
    }
}